var fs = require('fs');

syncFile('D:/a.txt', 'D:/b.txt');
var srcStat, destStat;
function syncFile(src, dest){
    fs.stat(src, function(err, stats){
        if (err) {
            console.log(err.message);
            return;
        }
        var isDirectory = stats.isDirectory();
		if(isDirectory){
			
		}
    });
}

